package com.sudo.dao.admin.mapper;

import com.sudo.common.mapper.MyMapper;
import com.sudo.dao.admin.entity.SysRole;
import com.sudo.dao.admin.entity.SysRoleMenu;
import com.sudo.dao.admin.entity.SysUserRole;
import com.sudo.dao.admin.model.vo.SysMenuButtonVO;
import com.sudo.dao.admin.model.vo.SysRoleButtonVO;
import com.sudo.dao.admin.model.vo.SysRoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapperCustom extends MyMapper<SysRole> {

    List<SysRoleVO> getSimpleRole(@Param("status") String status);

    List<SysRoleMenu> getMyMenuCodeByRoleCode(@Param("roleCode") String roleCode);

    List<SysRoleButtonVO> getRoleMenuButtonAuth(@Param("roleCode")String roleCode, @Param("menuCode")String menuCode);

    List<SysUserRole> getSysRoleUserCodeByOn(@Param("roleCode")String roleCode);

    List<SysMenuButtonVO> getMenuButtonByOn(@Param("menuCode")String menuCode);
}
